from django.urls import path
from .views import (
    UserRegisterAPIView, 
    AdminRegisterAPIView, 
    LoginAPIView,
    DashboardDataView, 
    UserProfileAPIView, 
    LogoutAPIView,
    GetDatas,
    UploadFile,
)

urlpatterns = [
    path('register/user/', UserRegisterAPIView.as_view(), name='user-register'),
    path('register/admin/', AdminRegisterAPIView.as_view(), name='admin-register'),
    path('login/', LoginAPIView.as_view(), name='login'),
    path('dashboard/', DashboardDataView.as_view(), name='dashboard'),
    path('profile/', UserProfileAPIView.as_view(), name='user-profile'),
    path('logout/', LogoutAPIView.as_view(), name='logout'),
     path('detect/', GetDatas.as_view(), name='detect-api'),
    path('upload/', UploadFile.as_view(), name='upload-api'),

]
